//
//  Config.h
//  JoyBaby
//
//  Created by mac on 15/12/17.
//  Copyright (c) 2015年 seven. All rights reserved.
//

#ifndef JoyBaby_Config_h
#define JoyBaby_Config_h

#define isIPhone6P ([UIScreen mainScreen].bounds.size.height == 736)

#define isIPhone6 ([UIScreen mainScreen].bounds.size.height == 667)

#define isIPhone5 ([UIScreen mainScreen].bounds.size.height == 568)




#define STATUS_BAR_HEIGHT 20
//NavBar高度
#define NAVIGATION_BAR_HEIGHT 44
//Tabbar 高度
#define TABBAR_HEIGHT   49
//状态栏 ＋ 导航栏 高度
#define STATUS_AND_NAVIGATION_HEIGHT ((STATUS_BAR_HEIGHT) + (NAVIGATION_BAR_HEIGHT))


//屏幕 rect
#define SCREEN_RECT ([UIScreen mainScreen].bounds)

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)

#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define CONTENT_HEIGHT (SCREEN_HEIGHT - NAVIGATION_BAR_HEIGHT - STATUS_BAR_HEIGHT)

//服务器的域名
#define ZM_SERVER @"http://115.28.55.133:8000/getall"
#define ZM_BOBY @{@"username":@"group1229"}


//homepage
#define HEADVIEW_HEIGHT SCREEN_WIDTH*1.15
#define SCROLL_HEIGHT SCREEN_WIDTH*0.35
#define SCROLLPAGE 5
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
#define M_PI_2      1.57079632679489661923132169163975144   /* pi/2           */
#define M_PI_4      0.785398163397448309615660845819875721  /* pi/4           */


//购物车cell
#define SPACING 10

#endif
